package com.khyr.feign;

import com.khyr.entity.HisPatient;
import com.khyr.entity.Menu;
import com.khyr.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "services-system", fallbackFactory = UserFallbackFactory.class)
public interface UserFeign {


    @GetMapping("/system/menu/getPermissionByUserId/{userId}")
    public R<List<Menu>> getPermissionByUserId(@PathVariable Long userId);
    @GetMapping("/system/user/getByName2/{name}")
    public R<HisPatient> getByName2(@PathVariable String name);

}